import cv2 as cv
import sys
img=cv.imread("../../data/messi5.jpg")
if img is None:
    sys.exit("could not read the image")
cv.imshow('as',img)
k=cv.waitKey(0)
if k==ord("s"):
    cv.imwrite("../../data/a.jpg",img)
cv.destroyWindow()







